<?php
class Solicitudes_Form_EvaluarCompletitud extends Form_Cna {
	
	public function __construct($options = null) {
		parent::__construct($options);
	}
	
	public function init() {
		$this->setName('evaluarcompletitud');
		$this->setMethod("post");
		$this->setAttrib('enctype', 'multipart/form-data');
		$domConfig = Zend_Registry::get('domConfig');
		
		$array_elements[] = new Zend_Form_Element_Hidden("codproceso");
		
	               
		$element = new Zend_Form_Element_Textarea('observaciones');
		$element->setLabel('Justificación y observaciones :');
		$element->setRequired(true);
		$element->addFilter('StripTags');
		$element->addFilter('StringTrim');
		$element->setAttrib("rows",10);
		$element->setAttrib("style","width:99%");
		$element->addValidator('StringLength', false, array($domConfig->TEXTO_TAMANOMIN));
        $array_elements[] = $element;
                
	    $element = new Zend_Form_Element_Radio("codestado");
	    $element->setLabel("Cambiar estado");
	    $element->setRequired(true);
	    $element->setValue(Solicitudes_Model_Historicoprocesos::EN_PRESELECCION_PARES);
	    $element->addMultiOptions(array(Solicitudes_Model_Historicoprocesos::EN_AUTOEVALUACION=>"Regresar a Autoevaluación",
	                                   Solicitudes_Model_Historicoprocesos::EN_PRESELECCION_PARES=>"En preselección Pares (Evaluación Externa)"));
		$array_elements[] = $element;
		
        
		$element = new Zend_Form_Element_Submit ( 'btnSubmit' );
		$element->setValue('Guardar');
		$element->setLabel("Guardar");
		$element->setAttrib("class", "iceCmdBtn");
		$array_elements[] = $element;
		
		$this->addElements ($array_elements);
		
		$this->loadTableDecorators();
	}
}